package com.alice.myrule;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AliceRule {

    /**
     * 可以写自定义负载均衡
     * @return
     */
    @Bean
    public IRule myRule(){
        return new DiyRandomRule();
    }
}
